Adding Custom Methods to a WS-AppServer Model |
|
Using the data in the database tables, WS-AppServer generates standard methods. However, these methods may not meet all the requirements of implementing business logic in applications. To accommodate such needs, WS-AppServer facilitates adding custom methods as per your specifications.
- Double-click the <WS-AppServer Package> from either of the following locations:
- Workspace Documents (My Recent Documents) window.
- Workspace Documents (Explorer) > <solution> > <project> . The WS-AppServer Package window appears, displaying the data models and their corresponding attributes, methods, and relations.
- Workspace Documents (My Recent Documents) window.
- In the Models group box, right-click a model and select Add > Method. The Method Properties dialog box appears.
- Fill in the required details on the dialog box and click OK. The new method is created in the Methods group box.
The custom method is added to the class.
After you complete this task:
The newly created method does not contain any parameter. To make it operational, add parameter(s) to it.